package test.aop;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class testAop{

	public static void main(String[] args) {
		 AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(AppConfig.class);
	//	ApplicationContext ctx = new ClassPathXmlApplicationContext(new String[]{"appspring.xml"});
		
		 Boy aop = (Boy) ctx.getBean("boy1");
		System.out.println(aop.say());
	}


}
